<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索结果</title>
    <link rel="stylesheet" href="../static/dist/semantic/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
</head>

<body  class="Site">
    <!-- 导航 -->
    <section id="home" style="background: url('https://zhuyougu-1315598583.cos.ap-guangzhou.myqcloud.com/blog/202212021953159.jpg')">
        <nav class="ui segment attached m-padded-tb-mini m-background-small m-fixed m-top m-height" style="z-index: 2" th:replace="_fragments :: menu(5)">
            <div class="ui secondary stackable menu m-margin-tb-mini">
                <h2 class="ui brown header item m-padded-mini">猪油骨</h2>
                <a href="#" class="right m-item item m-mobile-hide  m-padded-tb-small"><svg class="icon1" aria-hidden="true">
                    <use xlink:href="#icon-shouye"></use>
                </svg>首页</a>
                <a href="#" class="m-item item m-mobile-hide m-padded-tb-small"><svg class="icon1" aria-hidden="true">
                    <use xlink:href="#icon-fenlei1"></use>
                </svg> 分类</a>
                <a href="#" class="m-item item m-mobile-hide  m-padded-tb-small"><svg class="icon1" aria-hidden="true">
                    <use xlink:href="#icon-_biaoqian"></use>
                </svg> 标签</a>
                <a href="#" class="m-item item m-mobile-hide  m-padded-tb-small"><svg class="icon1" aria-hidden="true">
                    <use xlink:href="#icon-guidangrizhi"></use>
                </svg>归档</a>
                <a href="#" class="m-item item m-mobile-hide  m-padded-tb-small"><svg class="icon1" aria-hidden="true">
                    <use xlink:href="#icon-guanyuwomen2"></use>
                </svg>关于我</a>
                <a href="#" class="ui button m-item item m-mobile-hide m-padded-mini"><svg class="icon1" aria-hidden="true">
                    <use xlink:href="#icon-sousuo1"></use>
                </svg>搜索</a>
            </div>
            <div class="ui modal m-container-mini">
                <i class="close icon"></i>
                <h2 class="ui grey header item ">请输入搜索内容</h2>
                <div class=" ui right icon input">
                    <input type="text" placeholder="搜索....">
                    <i class="search link icon"></i>
                </div>
            </div>
            </div>
            <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show"
               style="background: rgba(0,0,0,0)"><i class="sidebar icon"></i></a>
        </nav>
        <div class="inner-width animated zoomIn">
            <div class="content">
                <h2 class="m-weight-none">我抓住了光，铺在理想的路上。</h2>
                <h3 class="m-weight-none">玫瑰留在了盛夏，谷底也会开花。</h3>
                <div class="buttons m-margin-tb-tiny disabled">
                    <a href="#container" style="font-size: xx-large">共 <span th:text="${page.totalElements}"> 14 </span> 个结果</a>
                </div>
            </div>
        </div>
    </section>
    <!-- 中间 -->
    <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
<!--            header-->
            <div class="ui top segment " th:each="blog : ${page.content}">
                <div class="ui padded vertical segment m-padded-tb-large">
                    <!--grid:分成16份、mobile reversed:手机端反转,原来图片在下方(eleven在下,five在上)、stackable:可堆叠,屏幕小的时候会堆叠到一块,用于适应移动端网页适配-->
                    <div class="ui middle aligned mobile reversed stackable grid">
                        <div class="eleven wide column">
                            <h3 class="ui header" ><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">你真的理解什么是财富自由吗?</a></h3>
                            <p class="m-text" th:text="|${blog.description}......|">正确做好任何一件事情的前提是清晰、正确的理解目标。而事实是，我们很多人很多时候根本没有对目标正确的定义，甚至根本从来就没有想过，只是大家都那么做而已…...</p>
                            <div class="ui grid">
                                <div class="eleven wide column">
                                    <!--horizontal:平着的、mini:小一点-->
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <!--avatar image:圆形的图片-->
                                            <img src="https://picsum.photos/id/1027/100/100" th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                            <div class="content"><a herf="#" class="header" th:text="${blog.user.nickname}">CodeSleep</a></div>
                                        </div>
                                        <div class="item">
                                            <!--calendar icon:时间的图标-->
                                            <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2020/10/1</span>
                                        </div>
                                        <div class="item">
                                            <!--eye icon:眼睛的图标-->
                                            <i class="eye icon"></i><span th:text="${blog.views}">2200</span>
                                        </div>
                                    </div>
                                </div>
                                <!--right aligned:靠右、pink:颜色、basic:边线试感觉-->
                                <div class="right aligned five wide column">
                                    <a href="#" target="_blank" class="ui pink basic label m-padded-tiny m-text-thin" th:text="${blog.type.name}">认知升级</a>
                                </div>
                            </div>
                        </div>

                        <div class="five wide column">
                            <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                <!--rounded:圆角的-->
                                <img src="https://picsum.photos/id/16/800/450" th:src="@{${blog.firstPicture}}" alt="" class="ui rounded image">
                            </a>
                        </div>

                    </div>
                </div>
            </div>
            <div class="ui bottom attached segment" th:if="${page.totalPages}>1">
                <!--middle aligned:垂直方向居中、two:一左一右-->
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <!--button:ui默认的button按钮、pink:颜色、basic:中间透明-->
                        <a href="#" th:href="@{/(page=${page.number}-1)}"  th:unless="${page.first}" class="ui mini pink basic button">上一页</a>
                    </div>
                    <div class="right aligned column">
                        <!--button:ui默认的button按钮、pink:颜色、basic:中间透明-->
                        <a href="#" th:href="@{/(page=${page.number}+1)}"  th:unless="${page.last}" class="ui mini pink basic button">下一页</a>
                    </div>
                </div>
            </div>
        </div>


    </div>
    <br>
    <br>
    <br>

    <!-- 底部 -->
    <footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-massive">
        <div class="ui center aligned container">
            <div class="ui inverted divided stackable grid">
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/Cache_-79d079ba8ca743f7..jpg" class="ui rounded image" alt=""
                                 style="width: 110px;">
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui center aligned inverted header m-text-thin m-text-spaced">最新博客</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">用户故事(User Story)</a>
                        <a href="#" class="item">用户故事(User Story)</a>
                        <a href="#" class="item">用户故事(User Story)</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui center aligned inverted header m-text-thin m-text-spaced">联系我</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">Email:1937627852@qq.com</a>
                        <a href="#" class="item">QQ:1937627852</a>
                        <a href="#" class="item">微信:zhuyougu10</a>

                    </div>
                </div>
                <div class="seven wide column">
                    <h4 class="ui center aligned inverted header m-text-thin m-text-spaced">声明：</h4>
                    <p class="m-text-thin m-text-spaced m-opacity-mini">此网站只用于交流学习，请勿用作它途。如有侵权，请联系， 删除处理。 </p>
                </div>
            </div>
            <div class="ui inverted section divider"></div>
            <p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright © 2022</p>
        </div>
    </footer>
    <!--/*/<th:block th:replace="_fragments :: script">/*/-->
    <script src="../static/dist/jquery/jquery-3.6.0.min.js"></script>
    <script src="../static/dist/semantic/semantic.min.js" ></script>
    <!--/*/th:block>/*/-->



    <script>
        $('.menu.toggle').click(function () {
            $('.m-item').toggleClass('m-mobile-hide');
        });
        $(function () {
            $(".ui.button.m-item").on("click", function () {
                $(".ui.modal").modal("show");
            })
        })


    </script>

</body>

</html>
